package com.zxx.admin.enums;

import com.zxx.admin.config.exception.BusinessExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description Demo 枚举类
 * @Author zhuangxx
 * @Date 2020-3-25
 */
@NoArgsConstructor
@AllArgsConstructor
public enum DemoEnum implements BusinessExceptionEnum {
    /**
     * 请求成功
     */
    SUCCESS(200, "请求成功！"),

    /**
     * 密码错误
     */
    PASSWORD_NOT_MATCHING(400, "密码错误");

    @Getter
    private int code;

    @Getter
    private String message;
}